﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;

namespace PraxisRent.Entities
{
    public class ESTADO_CIVIL:BaseEntity
    {
        public ESTADO_CIVIL()
        {
            this.PERSONAs = new List<PERSONA>();
        }

        public int Id { get; set; }

        [Display(Name="Descripcion")]
        [Required(ErrorMessage="La Descripcion es requerida")]
        public string Descripcion { get; set; }

        public virtual ICollection<PERSONA> PERSONAs { get; set; }

        public override string ToString()
        {
            return Descripcion;
        }
    }
}
